package com.example.annotation.common;

import java.util.HashMap;
import java.util.Map;

/**
 * @author fz
 * @creation time 2021/5/20
 */
public class ResponseUtil<T> {

    private Integer code;

    private String message;

    private T data;

    public static Map<String ,Object> success(Object data) {
        Map<String, Object> map = new HashMap<>();
        map.put("msg", "查询成功");
        map.put("code", 200);
        map.put("data", data);
        return map;
    }
}
